using System;
using System.Collections.Generic;
using System.Text;

namespace mds.Queue
{
	/// <summary>
	/// Primarily for unit tests, but potentially useful elsewhere,
	/// this is a concrete implementation of the IQueueProcessable interface.
	/// </summary>
	[Serializable]
	public class QueueProcessable : IQueueProcessable
	{
		private object obj;
		public object Object
		{
			get { return obj; }
			set { obj = value; }
		}

		private QueueProcessDelegate processItem;
		public QueueProcessDelegate ProcessItem
		{
			get	{ return processItem; }
			set { processItem += value;	}
		}
	}
}
